package com.xj.seven;

import com.xj.onetosix.Student;

public class Demo5 {
    public static void main(String[] args) {
       /* int[] arr = new int[5];
        int[] arr2 = {2, 3, 4, 5};
        arr[0] = 22;
        System.out.println(arr2.length);
        System.out.println(arr2[2]);*/

        String[] student = {"张三", "李四", "王五"};
        for (int i = 0; i < student.length; i++) {
            System.out.print(student[i] + ".");
        }

        for (String stu : student) {
            System.out.println(stu);
        }

    }
}
